package com.liuxia8.part8;

import java.util.Enumeration;
import java.util.Vector;

/**
 * Created by weng.junjie on 2017/3/7.
 */
public class EnumerationTest {
    public static void main(String[] args) {
        Vector cats = new Vector();
        cats.add(new Cat(1));
        Enumeration e = cats.elements();
        while(e.hasMoreElements()){
            System.out.println(e.nextElement().toString());
        }
    }
}
